﻿using StructureMap.Configuration.DSL;
using ZSoft.Telegram.DataAccess;
using ZSoft.Telegram.DataAccess.Abstractions;
using ZSoft.Telegram.Domain.User;
using ZSoft.Telegram.Services;
using Zsoft.Telegram.Services.Abstraction;

namespace ZSoft.Telegram.UI.Web.Infrastructure.IOC.Registries.Services
{
    public class UserServiceRegistry: Registry
    {
        public UserServiceRegistry()
        {
            this.For(typeof(IUserService))
                 .Use(typeof(UserService))
                   .Ctor<IRepository<ApplicationUser>>().Is(new SqlRepository<ApplicationUser>(new ApplicationDbContext()));
                   
        }
    }
}
